package com.app.service.impl.superarket;

import com.app.mapper.AdminUserMapper;
import com.app.mapper.supermarket.MktPersonMapper;
import com.app.model.AdminUserModel;
import com.app.model.supermarket.MktPersonModel;
import com.app.service.AdminUserService;
import com.app.service.supermarket.MktPersonService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * @Description:零活
 * @Author: N
 * @Date: 2022年11月24日 10点29分
 */
@Service
@Primary
public class MktPersonServiceImpl implements MktPersonService {
    @Autowired
    MktPersonMapper mktPersonMapper;


    @Override
    public int insert(MktPersonModel mktPerson) {
        return mktPersonMapper.insert(mktPerson);
    }

    @Override
    public void update(MktPersonModel mktPerson) {
        mktPersonMapper.update(mktPerson);
    }

    @Override
    public MktPersonModel getPersonByMid(int mid) {
        return mktPersonMapper.getPersonByMid(mid);
    }

    @Override
    public List<MktPersonModel> select(int id) {
        return mktPersonMapper.select(id);
    }

    @Override
    public MktPersonModel getModelByMobile(String mobile) {
        return mktPersonMapper.getModelByMobile(mobile);
    }

    @Override
    public void updateSkills(MktPersonModel mktPerson) {
        mktPersonMapper.updateSkills(mktPerson);
    }
}
